package com.itany.boot.nmms.service;

import com.itany.boot.nmms.entity.Dept;
import com.itany.boot.nmms.exception.DeptExistException;
import com.itany.boot.nmms.exception.RequestParamsException;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface DeptService {
    List<Dept> findAll();

    void addDept(String fatherId, String name, String duty, HttpSession session) throws RequestParamsException, DeptExistException;

    Dept findById(String id) throws RequestParamsException;

    void modifyStatus(String id) throws RequestParamsException;

    void modifyDept(String id, String name, String duty) throws RequestParamsException, DeptExistException;
}
